<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title>申办食品经营许可证</title>
    <link rel="stylesheet" href="#(basePath)/static/jquery-weui/css/weui.min.css">
    <link rel="stylesheet" href="#(basePath)/static/jquery-weui/css/jquery-weui.min.css">
    <link rel="stylesheet" href="#(basePath)/static/web/index/css/index.css">
    <style>
        .person_top { overflow: hidden; position: relative; width: 100%; z-index: 1; background: url(#(basePath)/static/img/top_bj.jpg); }
        .top_bj { display: block; height: auto; position: absolute; width: 1%; z-index: -1; }
        .per_con { overflow: hidden; padding: 15px 0 10px; width: 100%; }
        .per_con .user_photo { display: inline; float: left; width: 38%; overflow: hidden; text-align: center; }
        .per_con img { border-radius: 50%; width: 100%; height: 100%; height: 70px; width: 70px; border: 3px solid #edc7; }
        .per_con .user_photo span { color: #333333; width: 100%; text-align: center; display: block }
        .per_con .name_right { color: #555555; }
        .per_con .name_right p { font-size: 14px; line-height: 22px; }
        .per_con .name_right .p1 { color: #333333; font-size: 16px; margin: 6px 0; }
        .per_con .name_right .p2 { color: #58a1b0 }
    </style>

</head>
<body ontouchstart="">

<header class="demos-header">
    <div class="person_top">
        <img class="top_bj" src="#(basePath)/static/img/top_bj.jpg">
        <div class="per_con">
            <div class="user_photo" style="width: 30%;float: left">
                <img src="#(session.wxUser.headimgurl)">
              <!--  <span>zhangbin</span>-->
            </div>
            <div class="name_right" style="width: 70%;float: right">
                <p class="p1">申请人：#(session.wxUserInfo.name)</p>
                <p>注册地址：#(session.wxUser.country)-#(session.wxUser.province)-#(session.wxUser.city)</p>
                <p>户籍地：#(session.wxUserInfo.id_address)</p>
                <p>证件有效期：#(session.wxUserInfo.id_valid_date)</p>
               <!-- <p>注册时间：2015-11-11
                <p>会员级别：三级分销商</p>
                <p class="p2">积分值：6</p>-->
            </div>
        </div>
    </div>
</header>

<div class="weui-grids" style="margin-top: 50px;">
    <a href="javascript:toSb('1')" class="weui-grid js_grid" style="    width: 33.3333%; ">
        <div class="weui-grid__icon">
            <img src="#(basePath)/static/img/kssb_icon.png" alt="">
        </div>
        <p class="weui-grid__label">
           新办
        </p>
    </a>

    <a href="#(basePath)/toSbList" class="weui-grid js_grid" style="    width: 33.3333%; ">
        <div class="weui-grid__icon">
            <img src="#(basePath)/static/img/lssb_icon.png" alt="">
        </div>
        <p class="weui-grid__label">
           申报历史
        </p>
    </a>
    <a href="javascript:void(0)" class="weui-grid js_grid" style="    width: 33.3333%; " id="bszn">
        <div class="weui-grid__icon">
            <img src="#(basePath)/static/img/lssb_icon.png" alt="">
        </div>
        <p class="weui-grid__label">
            办事指南
        </p>
    </a>
    <a href="#(basePath)/toIndex2" class="weui-grid js_grid" style="    width: 33.3333%; ">
        <div class="weui-grid__icon">
            <img src="#(basePath)/static/img/lssb_icon.png" alt="">
        </div>
        <p class="weui-grid__label">
            其他
        </p>
    </a>
<input type="hidden" id="" value="">
</div>
<div class="page__footer">

    #include("../main/footer.html")
</div>
<script src="#(basePath)/static/js/global.js"></script>
<script src="#(basePath)/static/layer/mobile/layer.js"></script>
<script>
    //iframe层


    function toSb(sblx) {
        globalAsyncPost("#(basePath)/querySbxx?sblx="+sblx, false, function(rse){


                if(sblx=="1"){
                    if(rse.code="10000"&&rse.data!=null&&rse.data.length>0){
                        showModal(rse.data,sblx);

                    }else{
                        location.href=" #(basePath)/toSb?step=qyxx&sblx="+sblx;
                    }
                }else{
                    if(rse.code="10000"&&rse.data!=null&&rse.data.length>0){
                        showSb(rse.data,sblx);

                    }else{
                        layer.alert('暂未查找到您单位的证件信息，请致电0769-22337223咨询或移步我分局办事窗口办理');
                    }
                }

            });

    }
    function showModal(sbxxs,sblx) {

        if(sbxxs!=null&&sbxxs.length>0){
            $.modal({
                title: "未完成申报提示",
                text: "系统检测到您有未完成的申报信息",
                buttons: [
                    { text: "未完成申报", onClick: function(){
                            layer.open({
                                type: 2,
                                title: '未完成申报列表',
                                shadeClose: true,
                                shade: 0.8,
                                area: ['80%', '80%'],
                                content: '#(basePath)/toWwcsbList' //iframe的url
                            });
                        } },
                    { text: "开始新的申报", className: "default", onClick: function(){  if(sblx){}location.href="#(basePath)/toSb?sblx=1&step=qyxx"; }},
                ]
            });

        }
    }
    function showSb(sbxxs,sblx) {

        if(sbxxs!=null&&sbxxs.length>0){

            layer.open({
                type: 2,
                skin: 'layui-layer-rim', //加上边框
                area: ['90%', '80%'], //宽高
                content: "#(basePath)/toNoSbList?sblx="+sblx
            });

        }
    }
    $("#bszn").select({
        title: "选择事项类型",
        items: [
            {
                title: "《食品经营许可证》新办——小餐饮",
                value: "1",
            },
            {
                title: "《食品经营许可证》新办——食品流通",
                value: "2",
            },
            {
                title: "《食品经营许可证》新办——3日办结",
                value: "3",
            },
            {
                title: "《食品经营许可证》变更",
                value: "4",
            },
            {
                title: "《食品经营许可证》变更——3日办结",
                value: "5",
            },
            {
                title: "《食品经营许可证》注销",
                value: "6",
            },
            {
                title: "《食品经营许可证》延续",
                value: "7",
            },
            {
                title: "《药品经营许可证》注销",
                value: "8",
            },
            {
                title: "第二类医疗器械经营备案",
                value: "9"
            }
        ],
        onClose:function () {
           var values=$("#bszn").attr("data-values");
           console.log(values);
           if(values!==null){
           location.href="#(basePath)/wfw/wsbs/toBszn?values="+values;
           }
        }
    });
</script>
</body>
</html>